package com.asset.dispoal.business.mediation.service.converter;

import com.asset.dispoal.business.mediation.domain.db.entity.CollectionRecord;
import com.asset.dispoal.business.mediation.dto.CollectionRecordResponse;
import com.asset.dispoal.business.mediation.dto.QueryCollectionRecordRequest;
import com.asset.dispoal.business.mediation.dto.SaveCollectionRecordRequest;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @description: 工厂
 * @author: yf
 * @date: 2022-09-13 11:09:24
 */
@Mapper
public interface CollectionRecordConverter {
    CollectionRecordConverter INSTANCE = Mappers.getMapper(CollectionRecordConverter.class);

    CollectionRecord reqToDo(SaveCollectionRecordRequest request);

    CollectionRecord qReqToDo(QueryCollectionRecordRequest request);

    List<CollectionRecordResponse> doToRes(List<CollectionRecord> records);
}
